import { Logger, Module } from '@nestjs/common';
import { PostsService } from './posts.service';
import { PostsController } from './posts.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Posts } from './entities/post.entity';
import { TagsModule } from '../tags/tags.module';
import { JwtService } from '@nestjs/jwt';
import { CategoriesModule } from '../categories/categories.module';

@Module({
  imports: [TypeOrmModule.forFeature([Posts]), CategoriesModule, TagsModule],
  controllers: [PostsController],
  providers: [PostsService, JwtService, Logger],
})
export class PostsModule {}
